package com.itbaizhan.service.impl.impl;

import com.itbaizhan.dao.UsersDao;
import com.itbaizhan.dao.impl.UsersDaoImpl;
import com.itbaizhan.pojo.Users;
import com.itbaizhan.service.impl.UsersService;

import java.util.List;

public class UsersServiceImpl implements UsersService {


    @Override
    public Users findUsersById(int userid) {
        UsersDao ud = new UsersDaoImpl();
        return ud.selectById(userid);
    }

    @Override
    public List<Users> findUsersByLikeName(String username) {
     UsersDao ud=new UsersDaoImpl();
     return ud.selectUsersByLikeName(username);

    }

    public Users findUsers(int userid) {
        UsersDao ud = new UsersDaoImpl();
        return ud.selectUsers(userid);
    }
}
